package com.example.demo.entity.responseJson;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author : 洪俊新
 * @date : 2021/3/18 17:03
 * @description:
 */
@ApiModel("批量购买章节查询返回Json类")
public class BuyChaptersListRes {
    /**
     *主键
     * 书籍章节id
     * isnull 1
     */
    @ApiModelProperty(value="书籍章节id", position=1)
    @TableId(type = IdType.ASSIGN_ID)
    private String chapterId;

    /**
     * 章节名称(第几章+章节名称的格式)
     * isnull 0
     */        @ApiModelProperty(value="章节名称(第几章+章节名称的格式)",position=2)
    private String chapterName;

    /**
     * 章节所需积分
     * isnull 0
     */        @ApiModelProperty(value="章节所需积分", position=12)
    private Integer chapterPoints;

    public String getChapterId() {
        return chapterId;
    }

    public void setChapterId(String chapterId) {
        this.chapterId = chapterId;
    }

    public String getChapterName() {
        return chapterName;
    }

    public void setChapterName(String chapterName) {
        this.chapterName = chapterName;
    }

    public Integer getChapterPoints() {
        return chapterPoints;
    }

    public void setChapterPoints(Integer chapterPoints) {
        this.chapterPoints = chapterPoints;
    }

    @Override
    public String toString() {
        return "BuyChaptersListRes{" +
                "chapterId='" + chapterId + '\'' +
                ", chapterName='" + chapterName + '\'' +
                ", chapterPoints=" + chapterPoints +
                '}';
    }
}
